package com.ywq.app.biz;

import java.util.List;

import com.ywq.app.domain.AddressCode;
import com.ywq.common.exception.AppBusinessException;




public interface AddressCodeBiz {

	//取得全部的省/直辖市的名称
	List<AddressCode> getProvinceList() throws AppBusinessException;
	
	/**
	 * author Bruce Zhang
	 * @param province
	 * @return			根据省/直辖市取得市/区
	 * @throws AppBusinessException
	 */
	List<AddressCode> getCityByProvince(String province) throws AppBusinessException;
	
	/**
	 * author Bruce Zhang
	 * @param city		城市/直辖市的区
	 * @return			根据市/区取得县/街道
	 * @throws AppBusinessException
	 */
	List<AddressCode> getCountyByCity(String city) throws AppBusinessException;
	
	/**
	 * author Bruce Zhang
	 * @param county	县
	 * @return			根据县取得镇/街道
	 * @throws AppBusinessException
	 */
	List<AddressCode> getTownByCounty(String county) throws AppBusinessException;
	
	/**
	 * 根据省的编码获取省
	 * @param provinceCode
	 * @return
	 * @throws AppBusinessException
	 */
	public AddressCode getProvinceByCode(String provinceCode)throws AppBusinessException;
	
	/**
	 * 根据市的编码获取市
	 * @param cityCode
	 * @return
	 * @throws AppBusinessException
	 */
	public AddressCode getCityByCode(String cityCode)throws AppBusinessException;
	
	/**
	 * 根据区的编码获取区
	 * @param cityCode
	 * @return
	 * @throws AppBusinessException
	 */
	public AddressCode getCountyByCode(String countyCode)throws AppBusinessException;
	
	public AddressCode getCityCodeByName(String name)throws AppBusinessException;
	
}
